Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build multiple artifacts for the example document #83

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

cthoyt
Copy link
Contributor

@cthoyt cthoyt commented Sep 11, 2024

This pull request extends the GitHub Action that builds the PDF for the example document to also build other artifacts.

Before, it only build contextpdf but now it also builds jats, crossref, pdf, and preprint. Additionally, it now builds both the draft flavor and the production flavor (by adding -p). Each gets put into their own "artifact"

Why - I'm still trying to wrap my head around the testing suite and having the GitHub Actions environment be able to report back what its builds look like seems like a good step in that direction

@cthoyt cthoyt force-pushed the build-additional-artifacts branch from 8e381f1 to 22ccc1e Compare September 11, 2024 07:13
name: paper
path: example/paper.context.pdf
name: draft
path: |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: we should find a way to return the name of the generated files, so we don't have to maintain this manually.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do it with a ** glob pattern but that didn't work after a few tries so I went back to manually listing them

@tarleb
Copy link
Collaborator

tarleb commented Sep 16, 2024

I'd prefer not to change example/paper.md like this. LGTM otherwise, thank you!

@cthoyt
Copy link
Contributor Author

cthoyt commented Sep 16, 2024

I'd prefer not to change example/paper.md like this. LGTM otherwise, thank you!

Agreed, these diffs make it harder to review over time. I think I just had to change the file to trigger then PR, and PyCharm aggressively reformatted it. I just reverted it.

@tarleb tarleb merged commit 182483c into openjournals:main Sep 16, 2024
1 check failed
@cthoyt cthoyt deleted the build-additional-artifacts branch September 16, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants